def isPalindrome(n):
	s = str(n)
	s2 = s[-1::-1]
	return s == s2
	
s = ['12321', "12345", '9999', "abcba", "heui!"]
result = list(filter(isPalindrome, s))
print(result)